<template>
  <div class="">
    <div class="loginLeft">
      这是登录界面
    </div>
    <div class="loginLeft topadd">
      这是登录界面
    </div>
    <div class="loginRight">
      <div>
        <span>手机号：</span>
        <el-input
          class="rinput"
          placeholder="请输入您的手机号"
          prefix-icon="el-icon-search"
          v-model="telNumber">
        </el-input>
      </div>
      <div>
        <span>验证码：</span>
        <el-input
          class="rinput"
          placeholder="请输入验证码"
          prefix-icon="el-icon-search"
          v-model="password">
        </el-input>
      </div>
      <div class="fr w-24">
        <el-button  class="w-24" type="primary" @click="signInFun">登录</el-button>
      </div>
    </div>
  </div>
</template>

<script>
  import { baseApi } from '@/service/api';
    export default {
        name: "login",
      data(){
          return{
            telNumber:"",
            password:"",
          }
      },
      methods:{
        signInFun(){
          baseApi.log().then(res => {
            console.log(res)
            this.$router.push("/")
          })
        }
      },
    }
</script>

<style scoped>
  .login{
    position: relative;
    width: 100%;
    height: 100%;
  }
  .loginLeft{
    font-size: 80px;
    text-align: center;
    width: 800px;
    position: absolute;
    top: 25%;
    color: white;
    background-color: #5c93d2;
  }
  .topadd{
    top: 45%;
  }
  .loginRight{
    width: 400px;
    height: 400px;
    padding: 60px 30px;
    position: absolute;
    top: 20%;
    right: 10%;
    background-color: #5c93d2;
  }
  .loginRight span{
    font-size: 30px;
  }
  .loginRight>div{
    margin: 30px 0;
  }
  .rinput{
    width: 200px;
  }
</style>
